package com.ruoyi.healthCard.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.healthCard.mapper.TBizReportMapper;
import com.ruoyi.healthCard.domain.TBizReport;
import com.ruoyi.healthCard.service.ITBizReportService;

/**
 * 体检报告Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-27
 */
@Service
public class TBizReportServiceImpl implements ITBizReportService 
{
    @Autowired
    private TBizReportMapper tBizReportMapper;

    /**
     * 查询体检报告
     * 
     * @param reportId 体检报告主键
     * @return 体检报告
     */
    @Override
    public TBizReport selectTBizReportByReportId(Long reportId)
    {
        return tBizReportMapper.selectTBizReportByReportId(reportId);
    }

    /**
     * 查询体检报告列表
     * 
     * @param tBizReport 体检报告
     * @return 体检报告
     */
    @Override
    public List<TBizReport> selectTBizReportList(TBizReport tBizReport)
    {
        return tBizReportMapper.selectTBizReportList(tBizReport);
    }

    /**
     * 新增体检报告
     * 
     * @param tBizReport 体检报告
     * @return 结果
     */
    @Override
    public int insertTBizReport(TBizReport tBizReport)
    {
        tBizReport.setCreateTime(DateUtils.getNowDate());
        return tBizReportMapper.insertTBizReport(tBizReport);
    }

    /**
     * 修改体检报告
     * 
     * @param tBizReport 体检报告
     * @return 结果
     */
    @Override
    public int updateTBizReport(TBizReport tBizReport)
    {
        return tBizReportMapper.updateTBizReport(tBizReport);
    }

    /**
     * 批量删除体检报告
     * 
     * @param reportIds 需要删除的体检报告主键
     * @return 结果
     */
    @Override
    public int deleteTBizReportByReportIds(Long[] reportIds)
    {
        return tBizReportMapper.deleteTBizReportByReportIds(reportIds);
    }

    /**
     * 删除体检报告信息
     * 
     * @param reportId 体检报告主键
     * @return 结果
     */
    @Override
    public int deleteTBizReportByReportId(Long reportId)
    {
        return tBizReportMapper.deleteTBizReportByReportId(reportId);
    }
}
